<?php if (isset($pegawai1s) && count($pegawai1s) > 0) { ?>
    <h1>Data Pegawai1</h1>
    <table width="400" border="1" class="table table-striped">
        <thead>
            <tr>
                <th>#</th>
                <th>Id User</th>
                <th>Nama</th>
                <th>Username</th>
                <th>Edit</th>
                <th>Delete</th>
            </tr>
        </thead>
        <?php
        $i = 0;
        foreach ($pegawai1s as $pegawai1) {
            $i++;
            echo "<tr class=\"record\">";
            echo "<td>$i</td>";
            echo "<td>$pegawai1->id_user</td>";
            echo "<td>$pegawai1->nama</td>";
            echo "<td>$pegawai1->username</td>";
            echo "<td><a href='" . base_url() . "admin/edit/$pegawai1->id_user' class='fancybox fancybox.iframe input btn btn-success'>Edit</a></td>";
            echo "<td><a href='" . base_url() . "admin/delconf/$pegawai1->id_user' class='fancybox fancybox.iframe input btn btn-warning'>Delete</a></td>";
            echo "</tr>";
        }
        ?>
    </table>
    <?php } ?>